import { createStore, applyMiddleware } from 'redux';
import rootReducer from '../reducers';

export default function configureStore(initState, middleware) {
  const store = createStore(rootReducer, initState, applyMiddleware(middleware));
  return store;
}